<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>任务管理--近期任务</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/common.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/task.css" />
<script language="javascript" type="text/javascript"
	src="${pageContext.request.contextPath}/js/task/calendar.js">
	
</script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
	$(function() {
		$("#addtask").click(function() {
			window.location.href = "/weibo/TaskAddServlet.do";
		});
	});
</script>
</head>
<body>
	<div class="maincontent">
		<div class="content">
			<%@include file="/common/header.jsp"%>
			<%@include file="/common/daohang.jsp"%>
			<div class="your_position">
				<span>当前位置：</span><span><a href="#this">博主资源</a></span><span><a
					href="#this">查看微博博主</a></span>
			</div>
			<div id="now_next">
				<ul id="now_next_">
					<li><span class="next">近期任务</span></li>
				</ul>
				
				<ul id="now_next_right">
					<li><span>0个草稿，</span></li>
					<li><span>0个未派单，</span></li>
					<li><span>0个已派单，</span></li>
					<li><span>0个进行中，</span></li>
					<li><span>1个已取消， </span></li>
					<li><span>1个已叫停，</span></li>
					<li><span>47个已完成，</span></li>
					<li><span>11个已删除</span></li>
				</ul>
			</div>
			<div id="chart_line"></div>

			<div id="billing_main">
				<div id="sousuo">
					<ul>
						<li><span>起始时间：</span></li>
						<li><input type="text" name="starttime"
							onclick="calendar.show(this);" /></li>
						<li><span>至</span></li>
						<li><input type="text" name="endtime"
							onclick="calendar.show(this);" /></li>
						<li><input type="text" name="keyword" /></li>
						<li><button>搜索</button></li>
						<li><button onclick="addtask()">添加任务</button></li>
					</ul>
					<span class="text"
						style="display: block; float: right; margin-right: 10px;">排序：<select><option>默认排序</option></select></span>
				</div>
				<div class="text" style="margin-bottom: 5px;" id="task_table">
					<table border="0" width="100%">
						<thead>
							<tr>
								<th width="102">任务ID</th>
								<th width="121">任务名称</th>
								<th width="67">平台</th>
								<th width="67">类型</th>
								<th width="141">任务时间</th>
								<th width="110">实际消费</th>
								<th width="131">任务状态</th>
								<th width="131">总派单数</th>
								<th width="87">操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="task" items="${zhifalist}">
								<tr>
									<td>${task.TAS_ID }</td>
									<td>${task.TAS_NAME}</td>
									<td><c:choose>
											<c:when test="${task.PLA_ID==0}">新浪微博</c:when>
											<c:when test="${task.PLA_ID==1}">腾讯微博</c:when>
											<c:when test="${task.PLA_ID==2}">美丽说</c:when>
											<c:when test="${task.PLA_ID==3}">QQ空间</c:when>
										</c:choose></td>
									<td><c:choose>
											<c:when test="${task.TAS_TYPE==0}">直发</c:when>
											<c:when test="${task.TAS_TYPE==1}">转发</c:when>
											<c:when test="${task.TAS_TYPE==2}">分享</c:when>
										</c:choose></td>
									<td>${task.TAS_START_TIME}</td>
									<td>${task.TAS_NAME}</td>
									<td>${task.TAS_NAME}</td>
									<td>${task.TAS_NAME}</td>
									<td><a href="#">查看任务进度</a><br /> <a href="#">下载任务报告</a></td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>

			</div>
			<%@include file="/common/fenye.jsp"%>
			<%@include file="/common/footer.jsp"%>
		</div>
	</div>
</body>
</html>